/**
  ******************************************************************************
  * @file    system.c
  * @author  Dajin Li
  * @version V0.0.1
  * @date    08-08-2015 
  * @brief   This file contains CANopen specific functions. 
  *				 
  *          
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; KION(SZ) R&D Center
  *
  * Licensed under KION, (the "License");
  *
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "system.h"
#include "var_tbl.h"

/**
* @brief	Get parameter read status
* @param	address:parameter address
* @note     none
* @retval   1: read only;0: read and write
*/

s16 get_ecu_var_read_only_status(s16 address)
{
    return ((kwp_ecu_params[address].attr & READ_WRITE) == READ_WRITE);
}

/**
* @brief	Reset controller
* @param	none
* @note     none
* @retval   none
*/
void reset_controller(void)
{

    //if (!saving_to_flash)   {
     //   save_to_flash = 1;  //enable the saving
     //   save_hrmtrs();      //the real thing
        while(1);           //the watch dog timer will get us out of here!
   // } //if power off while I'm saving to flash, 

}
